package com.hmdp.dto;

import com.hmdp.utils.RegexPatterns;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Max;
import javax.validation.constraints.Pattern;

@Data
@Validated
public class LoginFormDTO {

    @Pattern(regexp = RegexPatterns.PHONE_REGEX)
    private String phone;

    private String code;
    private String password;
}
